package com.hdoit.kylin.logical.studentManager.service.impl;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.tennetcn.common.dao.base.impl.SuperService;
import com.hdoit.kylin.logical.studentManager.dao.IDataDao;
import com.hdoit.kylin.logical.studentManager.model.Data;
import com.hdoit.kylin.logical.studentManager.service.IDataService;
import com.hdoit.kylin.logical.viewmodel.DataSearch;
/**
* @author luozhicheng
* @email
* @createtime 2017年07月18日 20:16:49
* @comment
*/
@Component
public class DataServiceImpl extends SuperService<Data> implements IDataService{
	
	private IDataDao dataDao;
	public IDataDao getDataDao() {
		return dataDao;
	}
	@Resource
	public void setDataDao(IDataDao dataDao) {
		this.dataDao = dataDao;
	}
	@Override
	public List<Data> queryListByExcelId(DataSearch search){
		return dataDao.queryListByExcelId(search);
	}
	
	@Override
	public boolean deleteById(String id){
		return dataDao.deleteById(id);
	}
	
	@Override
	public int queryCountById(String id){
		return dataDao.queryCountById(id);
	}
	
	@Override
	public Data queryModelById(String id){
		return dataDao.queryModelById(id);
	}
}